using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Volo.Abp.Domain.Entities;
using System.ComponentModel.DataAnnotations;

namespace Acme.BookStore.Workzmy
{
    /// <summary>
    /// 调拨实体
    /// </summary>
    public class Allocation : Entity<Guid>
    {
        /// <summary>
        /// 调拨单号
        /// </summary>
        [Required]
        [StringLength(50)]
        public string AllocationNo { get; set; }

        /// <summary>
        /// 调拨类型
        /// </summary>
        [Required]
        [StringLength(20)]
        public string AllocationType { get; set; }

        /// <summary>
        /// 调拨申请日期
        /// </summary>
        [Required]
        public DateTime? ApplicationDate { get; set; }

        /// <summary>
        /// 调出仓库
        /// </summary>
        [Required]
        [StringLength(50)]
        public string FromWarehouse { get; set; }

        /// <summary>
        /// 调入仓库
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ToWarehouse { get; set; }

        /// <summary>
        /// 经办人
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Handler { get; set; }
        /// <summary>
        /// 签订人
        /// </summary>
        public string Singer { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string Remarks { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Required]
        [StringLength(20)]
        public string Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreationTime { get; set; }=DateTime.Now;

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastModificationTime { get; set; }

    }
}